package com.fh.web.vo;

import java.util.List;

import com.fh.dto.PubDdv;
import com.fh.dto.PurRole;


public class PurRoleVo extends PurRole{
	/**
	 * 返回前台字符串时间
	 */
	private String strData;
	/**
	 * 备用递归属性
	 */
	private PurRole roleDto;
	
	private int state;         //返回状态    addbyxujun
	
	private String value;     //返回类型值  
	
	public String getStrData() {
		return strData;
	}

	public void setStrData(String strData) {
		this.strData = strData;
	}

	public PurRole getRoleDto() {
		return roleDto;
	}

	public void setRoleDto(PurRole roleDto) {
		this.roleDto = roleDto;
	}

	public int getState() {
		return state;
	}

	public void setState(int state) {
		this.state = state;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}
	
	public static PurRoleVo  getPurRoleVo(PurRole role){
		PurRoleVo purRoleVo = new PurRoleVo();
		purRoleVo.setRoId(role.getRoId());
		purRoleVo.setToName(role.getToName());
		purRoleVo.setCreateTime(role.getCreateTime());
		purRoleVo.setType(role.getType());
		purRoleVo.setUserId(role.getUserId());
		purRoleVo.setNotes(role.getNotes());
		return purRoleVo;
	}

}
